package com.huaxi.ddgw.user.mapper;

import com.huaxi.ddgw.model.entity.user.UserAddress;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserAddressMapper {
    //获取用户地址列表
    List<UserAddress> findByUserId(Long userId);

    //获取地址信息
    UserAddress getUserAddress(Long id);

    //用户地址新增
    void save(UserAddress userAddress);

    //用户地址修改
    void updateById(UserAddress userAddress);

    //删除用户地址
    void removeById(Long id);
}
